{extend name="admin/layout" /}
{block name="main"}
<div id="main-container">
    <div id="breadcrumb">
        <ul class="breadcrumb">
            <li><i class="fa fa-home"></i><a href="/"> 首页</a></li>
            <li><i class="fa fa-desktop"></i><a href="{:url('index')}"> 管理后台</a></li>
            <li class="active">主站配置</li>
        </ul>
    </div><!-- /breadcrumb-->
    <div class="main-header clearfix">
        <div class="page-title">
            <h3 class="no-margin">主站配置</h3>
        </div><!-- /page-title -->
    </div>
    <div class="padding-md">
        <div class="row">
            <div class="col-lg-12">
                <div class="panel panel-info">
                    <div class="panel-heading">
                        主站配置
                    </div>
                    <div class="panel-body">
                        <form role="form" class="form-horizontal" method="post">
                            <div class="form-group">
                                <label class="col-lg-3 control-label">主站地址</label>
                                <div class="col-lg-8">
                                    <input type="text" name="domain" class="form-control"
                                           value="{:config('zz_domain')}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">分站可选择域名</label>
                                <div class="col-lg-8">
                                    <input type="text" name="domains" class="form-control"
                                           value="{:config('zz_domains')}">
                                    <pre>多个域名用,隔开！</pre>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">主站站长QQ</label>
                                <div class="col-lg-8">
                                    <input type="text" name="qq" class="form-control" value="{:config('zz_qq')}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">一次性充值满多少送免费开通分站资格（元）</label>
                                <div class="col-lg-8">
                                    <input type="text" name="price_sfz" class="form-control" value="{:config('zz_price_sfz')}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">QQ登录调用API地址</label>
                                <div class="col-lg-8">
                                    <input type="text" name="login_api" class="form-control" value="{:config('zz_login_api')}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-lg-3 control-label">开通分站价格</label>
                                <div class="col-lg-8">
                                    <input type="number" name="price_ktfz" class="form-control"
                                           value="{:config('zz_price_ktfz')}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">开通二级主站价格</label>
                                <div class="col-lg-8">
                                    <input type="number" name="price_ktfz_super" class="form-control"
                                           value="{:config('zz_price_ktfz_super')}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">分站开分站提成金币数</label>
                                <div class="col-lg-8">
                                    <input type="number" name="price_tc_ktfz" class="form-control"
                                           value="{:config('zz_price_tc_ktfz')}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">全套代挂价格</label>
                                <div class="col-lg-8">
                                    <input type="text" name="price_all" class="form-control"
                                           value="{:config('zz_price_all')}">
                                </div>
                            </div>
                            <div class="form-group">
								<label class="col-lg-3 control-label">填写邀请码被邀请方获得奖励</label>
								<div class="col-lg-8">
									<input type="text" name="point_invite1" class="form-control"
										   value="{:config('zz_point_invite1')}">
								</div>
							</div>
							<div class="form-group">
								<label class="col-lg-3 control-label">填写邀请码邀请方获得奖励</label>
								<div class="col-lg-8">
									<input type="text" name="point_invite2" class="form-control"
										   value="{:config('zz_point_invite2')}">
								</div>
							</div>
                            <!--div class="form-group">
                                <label class="col-lg-3 control-label">1个配额价格(元)</label>
                                <div class="col-lg-8">
                                    <input type="text" name="price_peie1" class="form-control" value="{:config('zz_price_peie1')}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">3个配额价格(元)</label>
                                <div class="col-lg-8">
                                    <input type="text" name="price_peie3" class="form-control" value="{:config('zz_price_peie3')}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">5个配额价格(元)</label>
                                <div class="col-lg-8">
                                    <input type="text" name="price_peie5" class="form-control" value="{:config('zz_price_peie5')}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">10个配额价格(元)</label>
                                <div class="col-lg-8">
                                    <input type="text" name="price_peie10" class="form-control" value="{:config('zz_price_peie10')}">
                                </div>
                            </div-->

                            <div class="form-group">
                                <label class="col-lg-3 control-label">每天前多少个签到有奖励</label>
                                <div class="col-lg-8">
                                    <input type="number" name="qiandao_num" class="form-control" value="{:config('zz_qiandao_num')}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">签到送金币规则</label>
                                <div class="col-lg-8">
                                    <input type="text" name="qiandao_rule" class="form-control" value="{:config('zz_qiandao_rule')}">
                                    <div class="alert alert-danger">1:10 代表连续签到1天送10金币，多条规则用,隔开<br>
                                        1:10,3:20,5:30 代表连续签到第一天送10，第二天送10，第三天送20，第4天送20，第五天送30，以后都是送30。以此类推！
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">每天领余额总份数</label>
                                <div class="col-lg-8">
                                    <input type="number" name="hb_num" class="form-control" value="{:config('zz_hb_num')}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">每天领余额总金额数</label>
                                <div class="col-lg-8">
                                    <input type="number" name="hb_point" class="form-control" value="{:config('zz_hb_point')}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">单份余额最大多少元</label>
                                <div class="col-lg-8">
                                    <input type="number" name="hb_point_one" class="form-control" value="{:config('zz_hb_point_one')}">
                                </div>
                            </div>


                            <div class="form-group">
                                <label class="col-lg-3 control-label">分站后台公告</label>
                                <div class="col-lg-8">
                                    <textarea name="gg_admin" rows="5" class="form-control">{:getHtmlCode(config('zz_gg_admin'),true)}</textarea>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="col-lg-offset-3 col-lg-8">
                                    <button class="btn btn-primary" type="submit">保存配置</button>
                                    <button class="btn btn-default-outline" type="reset">重置</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{/block}
